package com.zszq.ms.bigmodeltest.model.deepseek;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

@Data
public class ChatRequest {
    private String model = "deepseek-chat";
    private List<Message> messages;
    private int frequency_penalty = 0;
    private int max_tokens = 1024;
    private int presence_penalty = 0;
    private double temperature = 0.7;
    private int top_p = 1;
    private String tools = null;
    private String tool_choice = "none";
    private String top_logprobs = null;
    private boolean logprobs = false;
    private boolean stream = false;
    private String stream_options;
    private ResponseFormat response_format;

    @Data
    public static class Message {
        private String role;
        private String content;

        public Message(String role, String content) {
            this.role = role;
            this.content = content;
        }
    }

    @Data
    public static class ResponseFormat {
        private String type = "json_object";
    }
}

